using UnityEditor;
using UnityEditor.UI;
using UnityX;

namespace UnityXEditor
{
    [CanEditMultipleObjects]
    [CustomEditor(typeof(OnOffFlip), true)]
    internal class OnOffFlipEditor : GraphicEditor
    {
        private SerializedProperty m_OnOff;
        private SerializedProperty Interactable;
        private SerializedProperty m_OnTexture;
        private SerializedProperty m_OffTexture;
        private SerializedProperty OnColor;
        private SerializedProperty OffColor;
        private SerializedProperty AnimationSpeed;

        protected override void OnEnable()
        {
            base.OnEnable();
            m_OnOff = serializedObject.FindProperty("m_OnOff");
            Interactable = serializedObject.FindProperty("Interactable");
            m_OnTexture = serializedObject.FindProperty("m_OnTexture");
            m_OffTexture = serializedObject.FindProperty("m_OffTexture");
            OnColor = serializedObject.FindProperty("OnColor");
            OffColor = serializedObject.FindProperty("OffColor");
            AnimationSpeed = serializedObject.FindProperty("AnimationSpeed");
        }
        public override void OnInspectorGUI()
        {
            serializedObject.Update();
            EditorGUILayout.PropertyField(m_OnOff);
            EditorGUILayout.PropertyField(Interactable);
            EditorGUILayout.PropertyField(m_OnTexture);
            EditorGUILayout.PropertyField(m_OffTexture);
            EditorGUILayout.PropertyField(OnColor);
            EditorGUILayout.PropertyField(OffColor);
            EditorGUILayout.PropertyField(AnimationSpeed);
            //AppearanceControlsGUI();
            //RaycastControlsGUI();
            //MaskableControlsGUI();
            serializedObject.ApplyModifiedProperties();
        }
    }
}